#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <stdlib.h>


void Text()
{
	int* p = (int*)malloc(20);
	if (p == NULL)
	{
		perror("malloc");
		return 1;
	}
	int* p2 = p;
	p2 = (int*)realloc(p2, 80);
	if (p2 = NULL)
	{
		perror("malloc");
		return 2;
	}
	free(p2);
}


int main()
{
	Text();
	return 0;
}